$(()=>{
    $.get("{LINK_getNavList}",{},text=>{
        /*console.log(text);*/
        let data=JSON.parse(text);
        let count=0;
        let x="";
        for (let i=0;i<data.length;i++){
            if (!data[i].hide){
                count++;
                x+=`<h3 class="content-sub-heading">${data[i].title}</h3>`;
                for (let j=0;j<data[i].host.length;j++){
                    let ssl=data[i].host.ssl?"https":"http";
                    x+=`<h4 class="margin-left"><a style="text-transform: none;" class="btn btn-flat waves-light waves-effect waves-button" href="${ssl}://${data[i].host[j]}">${data[i].host[j]}</a></h4>`;
                }
            }
        }
        $("#main").html(x);
        $("#count").text(`我们共有${count}个站点`)
        loadColor();
    });
});